

package org.example.jet.impl.deployment;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * Used collect results of reading resource from the classpath during tests.
 * It is intentionally put into {@code org.example} package to avoid any filtering done by various classloaders.
 */
public class ResourceCollector {

    private static final List<String> items = Collections.synchronizedList(new ArrayList<>());

    public static void add(String resource) {
        items.add(resource);
    }

    public static List<String> items() {
        return items;
    }
}
